package com.itheima.mp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.mp.domain.dto.PageDTO;
import com.itheima.mp.domain.po.User;
import com.itheima.mp.domain.query.UserQuery;
import com.itheima.mp.domain.vo.UserVO;

import java.util.List;

/**
 * @author ChenPi
 * @since 2024/12/05 10:04
 */
public interface IUserService extends IService<User> {
    void deductionBalanceById(Long id, Integer money);

    List<User> queryUsers(UserQuery query);

    UserVO queryUserAndAddressById(Long id);

    List<UserVO> queryUsersWithAddress(List<Long> ids);

    PageDTO<UserVO> queryUsersPage(UserQuery query);

}
